﻿/*code*/
CKEDITOR.plugins.add( 'code', {
    icons: 'code',
    init: function( editor ) {
    	//Creating an Editor Command
    	editor.addCommand( 'codeDialog', new CKEDITOR.dialogCommand( 'codeDialog' ) );
    	//Creating the Toolbar Button
        editor.ui.addButton( 'Code', {
            label: '插入代码',
            command: 'codeDialog',
            toolbar: 'insert'
        });
        //Plugin Dialog Window
        CKEDITOR.dialog.add( 'codeDialog', this.path + 'dialogs/code.js' );
    }
});